package com.ruoyi.cs.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 红包信息对象 t_redbag
 * 
 * @author ruoyi
 * @date 2021-03-25
 */
@Data
public class TRedbag extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 红包ID */
    @ApiModelProperty(value = "红包ID")
    private String redbagId;
    /** 红包名称 */
    @ApiModelProperty(value = "红包名称")
    @Excel(name = "红包名称")
    private String redbagName;
    /** 红包类型 */
    @ApiModelProperty(value = "红包类型")
    @Excel(name = "红包类型")
    private String redbagType;
    /** 红包参与条件描述 */
    @ApiModelProperty(value = "红包参与条件描述")
    @Excel(name = "红包参与条件描述")
    private String redbagDescribe;
    /** 红包口令 */
    @ApiModelProperty(value = "红包口令")
    @Excel(name = "红包口令")
    private String redbagCode;
    /** 红包剩余数量 */
    @ApiModelProperty(value = "红包剩余数量")
    @Excel(name = "红包剩余数量")
    private Long redbagOvernum;
    /** 红包总数 */
    @ApiModelProperty(value = "红包总数")
    @Excel(name = "红包总数")
    private Long redbagTotalnum;
    /** 红包金额 */
    @ApiModelProperty(value = "红包金额")
    @Excel(name = "红包金额")
    private BigDecimal redbagMoney;
    /** 红包截止时间 */
    @ApiModelProperty(value = "红包截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "红包截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cutoffTime;
    /** 推广人 */
    @ApiModelProperty(value = "推广人")
    @Excel(name = "推广人")
    private String userName;
    /** 推广码 */
    @ApiModelProperty(value = "推广码")
    @Excel(name = "推广码")
    private String userCode;
    /** 充值金额 */
    @ApiModelProperty(value = "充值金额")
    @Excel(name = "充值金额")
    private BigDecimal rechargeAmount;
    /** 开始时间 */
    @ApiModelProperty(value = "开始时间")
    @Excel(name = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rechargeStartTime;
    /** 结束时间 */
    @ApiModelProperty(value = "结束时间")
    @Excel(name = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rechargeEndTime;
    /** 删除标志 */
    @ApiModelProperty(value = "删除标志")
    @Excel(name = "删除标志")
    private String delFlag;
    /** 版本号 */
    @ApiModelProperty(value = "版本号")
    @Excel(name = "版本号")
    private Long version;
    /**
     * 后台标志
     */
    private String backStage;

    /**上架数量*/
    @ApiModelProperty(value = "上架数量")
    private Long groundingNum;

    @ApiModelProperty(value = "指定手机号")
    @Excel(name = "指定手机号")
    private String appointPhoneNum;

    @ApiModelProperty(value = "是否展示 0是 1否")
    private String isShow;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "随机红包最小金额")
    private BigDecimal minAmount;

    @ApiModelProperty(value = "随机红包最大金额")
    private BigDecimal maxAmount;
}
